# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	libhubbub
PORTVERSION=	0.3.0
CATEGORIES=	www
MASTER_SITES=	http://download.netsurf-browser.org/libs/releases/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	HTML5 parser library

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libparserutils.so:${PORTSDIR}/devel/libparserutils

WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}

USES=	gmake pkgconfig
USE_CSTD=	gnu99
USE_LDCONFIG=	yes

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
MAKE_ENV+=	COMPONENT_TYPE=lib-shared

post-patch:
	${REINPLACE_CMD} -i '' -e 's|LIBDIR|lib|' \
		${WRKSRC}/libhubbub.pc.in

.include <bsd.port.mk>
